package Hotel.frame;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;

public class StartFrame extends JFrame {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	JFrame frame;
	JButton button;
	JLabel label;
	public StartFrame() {
		frame = new JFrame();
		frame.setBounds(600, 200, 698, 503);
		init();
		frame.setVisible(true);
	}
	public void init() {
		label = new JLabel("");
		label.setIcon(new ImageIcon("E:\\javawork\\HotelManagementSystem\\J4m47l0nYK (1).jpg"));
		label.setBounds(0, 0, 698, 503);
		frame.add(label);
		frame.addMouseListener(new MouseListener() {
			
			@Override
			public void mouseReleased(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void mousePressed(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void mouseExited(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void mouseEntered(MouseEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void mouseClicked(MouseEvent e) {
				// TODO Auto-generated method stub
				if(e.getClickCount()==2) {
					new HotelMainFrame();
					frame.dispose();
				}
			}
		});
	}
	public static void main(String[] args) {
		new StartFrame();	
	}
}
